Skip to main content

Get Table Range

AutomatR.Excel.Activities.GetTableRange

The "Get Table Range" activity in AutomatR is part of the Excel Table activities package, designed to extract the range of an Excel table from a specified spreadsheet. This activity is useful for dynamically working with the data within a named Excel table, enhancing automation workflows.

Properties

NameDescription
Input
Table NameSpecifies the name of the Excel table from which to extract the range. String variables containing the table name.
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Table Range" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultReturns the string representing the range of the Excel table (e.g., "A1:B5"). String variables containing the range value.

How to use:

  1. Drag and drop the "Get Table Range" activity onto the workflow.
  2. Configure the properties by specifying the table name.
  3. Optionally, configure the delay.
  4. Execute the workflow to retrieve the range of the specified Excel table.

Example: Consider an example where the "Get Table Range" activity is used to extract the range of an Excel table named "EmployeeData":

Get Table Range:
Delay: 2
Table Name: "EmployeeData"
Result: tableRange

In this example, the activity retrieves the range of the "EmployeeData" Excel table, and the range value is stored in the string variable "tableRange" for further processing in the workflow.

Note: Ensure that the "Get Table Range" activity is placed within an "Excel Root" activity to establish the Excel context for execution.